/**
 * 全局vue组件注入
 * @author huangchunmao
 * @email sujinw@qq.com
 * @date 2020/6/8
*/
import Vue from 'vue'
import SvgIcon from './SvgIcon'
import { Toast } from 'vant'

Vue.component('svg-icon', SvgIcon)
Vue.use(Toast)

const req = require.context('@/assets/images/svgs', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
